import {request} from './core';
import {Method,PATH} from './config';

const APIClient = {
	getStoreList(page,pageSize){
		return request(Method.GET,PATH.get_store_list,{page:page,pageSize:pageSize})
	},
	
	login(moblie,password){
		return request(Method.GET,PATH.login,{moblie:moblie,pwd:password})
	},
	
	xiangqing(id){
		return request(Method.GET,PATH.xiangqing,{id:id})
	},
	
	banner(){
		return request(Method.GET,PATH.banner)
	},
	
	kanjiaItem(){
		return request(Method.GET,PATH.kanjia)
	},
	
	HiscrollItem(){
		return request(Method.GET,PATH.Hiscroll)
	},
	
	tuijianList(){
		return request(Method.GET,PATH.tuijian)
	},
	
	ZhuaninfoList(id){
		return request(Method.GET,PATH.Zhuaninfo,{params:{id:id}})
	},
	
	ShopClassifyList(){
		return request(Method.GET,PATH.shopClassify)
	},
	
	getdetails(id){
		return request(Method.GET,PATH.details,{params:{id:id}})
	},
	
	Lingquan(token,status){
		return request(Method.POST,PATH.Lingquan,{token:token,status:status})
	},
	
	Dizhi(token){
		return request(Method.POST,PATH.Dizhi,{token:token})
	},
	
	
};

export default APIClient;